Change in openvpn[master]: argv: Fix one type to avoid sign-compare warning
A message that is not in the archive (sent off-list or not yet received): gerrit.1769512571000.Ida8e587a095bdfb821ee0a4783633f026d310476@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1494?usp=email
to review the following change.
Change subject: argv: Fix one type to avoid sign-compare warning
......................................................................
argv: Fix one type to avoid sign-compare warning
len is already int, no need to throw another
type into the mix.
---
M src/openvpn/argv.c
1 file changed, 1 insertion(+), 10 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/94/1494/1
src/openvpn/argv.c +1 -10
@@ -263,11 +263,6 @@gc_free (&gc); } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wsign-compare" -#endif -/** * Prepares argv format string for further processing *
@@ -389,7 +384,7 @@* Do the actual vsnprintf() operation, which expands the format * string with the provided arguments. */ -size_t size = len +1 ; +int size = len +1 ;char *buf =gc_malloc (size, false, &argres->gc); len =vsnprintf (buf, size, f, arglist);if (len <0 || len >= size)
@@ -423,10 +418,6 @@return res; } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif -/** * printf() variant which populates a struct argv. It processes the * format string with the provided arguments. For each space separator found
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1494?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ida8e587a095bdfb821ee0a4783633f026d310476
Gerrit-Change-Number: 1494
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: flichtenheld.
plaisthos has posted comments on this change by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1494?usp=email )
Change subject: argv: Fix one type to avoid sign-compare warning
......................................................................
Patch Set 5: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1494?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ida8e587a095bdfb821ee0a4783633f026d310476
Gerrit-Change-Number: 1494
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 02 Mar 2026 15:34:55 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH v5 1/1 argv: Fix one type to avoid sign-compare warning
In reply to a message not in the archiveFrom: Frank Lichtenheld <[email protected]...>
len is already int, no need to throw another
type into the mix.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1494
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1494
This mail reflects revision 5 of this Change.
Acked-by according to Gerrit (reflected above):
Arne Schwabe <[email protected]...>
src/openvpn/argv.c +1 -10
@@ -263,11 +263,6 @@gc_free (&gc); } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wsign-compare" -#endif -/** * Prepares argv format string for further processing *
@@ -389,7 +384,7 @@* Do the actual vsnprintf() operation, which expands the format * string with the provided arguments. */ -size_t size = len +1 ; +int size = len +1 ;char *buf =gc_malloc (size, false, &argres->gc); len =vsnprintf (buf, size, f, arglist);if (len <0 || len >= size)
@@ -423,10 +418,6 @@return res; } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif -/** * printf() variant which populates a struct argv. It processes the * format string with the provided arguments. For each space separator found
[Openvpn-devel] [PATCH applied] Re: argv: Fix one type to avoid sign-compare warning
Easy enough...
Your patch has been applied to the master branch.
commit 739865d9c14723c387a777372b576984e9070678
Author: Frank Lichtenheld Date: Wed Mar 4 15:40:54 2026 +0100
argv: Fix one type to avoid sign-compare warning
Signed-off-by: Frank Lichtenheld <[email protected]...>
Acked-by: Arne Schwabe <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1494
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35891.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#6) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1494?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by plaisthos
Change subject: argv: Fix one type to avoid sign-compare warning
......................................................................
argv: Fix one type to avoid sign-compare warning
len is already int, no need to throw another
type into the mix.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1494
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35891.html
---
M src/openvpn/argv.c
1 file changed, 1 insertion(+), 10 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/94/1494/6
src/openvpn/argv.c +1 -10
@@ -263,11 +263,6 @@gc_free (&gc); } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wsign-compare" -#endif -/** * Prepares argv format string for further processing *
@@ -389,7 +384,7 @@* Do the actual vsnprintf() operation, which expands the format * string with the provided arguments. */ -size_t size = len +1 ; +int size = len +1 ;char *buf =gc_malloc (size, false, &argres->gc); len =vsnprintf (buf, size, f, arglist);if (len <0 || len >= size)
@@ -423,10 +418,6 @@return res; } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif -/** * printf() variant which populates a struct argv. It processes the * format string with the provided arguments. For each space separator found
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1494?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ida8e587a095bdfb821ee0a4783633f026d310476
Gerrit-Change-Number: 1494
Gerrit-PatchSet: 6
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1494?usp=email )
Change subject: argv: Fix one type to avoid sign-compare warning
......................................................................
argv: Fix one type to avoid sign-compare warning
len is already int, no need to throw another
type into the mix.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1494
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35891.html
---
M src/openvpn/argv.c
1 file changed, 1 insertion(+), 10 deletions(-)
src/openvpn/argv.c +1 -10
@@ -263,11 +263,6 @@gc_free (&gc); } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wsign-compare" -#endif -/** * Prepares argv format string for further processing *
@@ -389,7 +384,7 @@* Do the actual vsnprintf() operation, which expands the format * string with the provided arguments. */ -size_t size = len +1 ; +int size = len +1 ;char *buf =gc_malloc (size, false, &argres->gc); len =vsnprintf (buf, size, f, arglist);if (len <0 || len >= size)
@@ -423,10 +418,6 @@return res; } -#if defined(__GNUC__) || defined(__clang__) -#pragma GCC diagnostic pop -#endif -/** * printf() variant which populates a struct argv. It processes the * format string with the provided arguments. For each space separator found
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1494?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ida8e587a095bdfb821ee0a4783633f026d310476
Gerrit-Change-Number: 1494
Gerrit-PatchSet: 6
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>